<?php
/**
 * User: zhaoguofeng
 * Date: 2022/1/27
 * Time: 17:24
 */

namespace tests\unit;

use app\builder\BlueBirdBuilder;
use app\builder\Director;
use app\builder\RedBirdBuilder;
use PHPUnit\Framework\TestCase;

class Builder extends TestCase
{
    public function testRun()
    {
        $blueBirdBuilder = new BlueBirdBuilder();
        new Director($blueBirdBuilder);
        $blueBird = $blueBirdBuilder->getBird();
        $blueBird->show();

        $redBirdBuilder = new RedBirdBuilder();
        new Director($redBirdBuilder);
        $redBird = $redBirdBuilder->getBird();
        $redBird->show();
    }
}